package com.hubiao.pro.controller;

import com.hubiao.pro.service.PublisherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description
 *
 * @author hubiao
 * @since 2021-01-30 0:20
 */
@RestController
@RequestMapping
public class PublisherController {

    @Resource
    private PublisherService publisherService;


    @GetMapping("/sendMessage")
    public String sendMessage(@RequestParam("name") String name) {
        return publisherService.sendMessage( name );
    }

}
